package com.xl.studentpass.controller;

import com.xl.studentpass.service.CategoryService;
import com.xl.studentpass.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: xl
 * @createTime: 2023/5/27 14:27:25
 * @program: student-pass
 * @e-mail: 2199396150@qq.com
 * @description:
 */
@RestController
@RequestMapping("/taskCate")
@Api(tags = "任务分类相关接口")
@Slf4j
public class CategoryController {
    @Resource
    CategoryService categoryService;

    @GetMapping("/list")
    @ApiOperation("获取分类信息")
    public R getCategory() {
        log.info(this.getClass().getSimpleName() + "==========的获取分类信息被调用");
        return categoryService.getCate();
    }

}
